if SERVER then
	util.AddNetworkString( "SendHoldType" )
end
SWEP.Author			= "Admiral Ironbuns"
SWEP.Contact		= "devcond@aol.com"
SWEP.Purpose		= "N/A"
SWEP.Instructions	= "N/A"

SWEP.ViewModelFOV	= 62
SWEP.ViewModelFlip	= false
SWEP.ViewModel		= "models/devin/rpgdm_weapons/basic/spikedmace.mdl"
SWEP.WorldModel		= ""
SWEP.HoldType = "melee2"
SWEP.OldHoldType = "poot"
SWEP.WeaponType = "Melee"
SWEP.WeaponStance = "shield"

SWEP.AttackSpeed = 1.5
SWEP.NextSwing = 0

SWEP.WeaponReach = 128
	
SWEP.MinWeaponDamage = 5
SWEP.MaxWeaponDamage = 10

SWEP.Spawnable			= false
SWEP.AdminSpawnable		= false

SWEP.HoldType = ""

function SWEP:Initialize()
	timer.Simple(0.5, function()
		self:SetWeaponHoldType(self.Owner:GetNWString("HoldType"))
		self.HoldType = self.Owner:GetNWString("HoldType")
	end)
end

function SWEP:Think()
	if(self.Owner:GetNWString("HoldType") != self.HoldType)then
		self:SetWeaponHoldType(self.Owner:GetNWString("HoldType"))
		self.HoldType = self.Owner:GetNWString("HoldType")
	end
end

function SWEP:Deploy()

end

function SWEP:PrimaryAttack()
	return false
end

function SWEP:SecondaryAttack()
	return false
end

function SWEP:Reload()
	return false
end

if CLIENT then
	net.Receive("SendHoldType", function(len, ply)
		HoldType = net.ReadString()
	end)
end


